/*
package com.jyu.work.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class CorsConfig implements WebMvcConfigurer {

    @Override
    public void addCorsMappings(CorsRegistry registry) {

        System.out.println("==========================================");
        registry.addMapping("/**")
            .allowedOrigins("http://127.0.0.1:5173","http://localhost:5173")
            .allowedMethods("GET", "POST", "PUT", "DELETE")
            .allowedHeaders("Origin", "Content-Type", "Accept")
            .allowCredentials(true)
            .maxAge(3600);
    }
}
*/
